package cn.marinda.listener;

import cn.marinda.gui.impl.ServerConsoleHelperImpl;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * 改变服务器控制台活动事件
 *
 *
 * @author hwj
 * @date 2022/07/11
 */
public class ChangeServerConsoleActivityEvent implements ActionListener {

    /**
     * Invoked when an action occurs.
     *
     * @param e
     */
    @Override
    public void actionPerformed(ActionEvent e) {
        ServerConsoleHelperImpl.instance.close();
        ServerConsoleHelperImpl.instance.open();
    }
}
